package com.electronsys.room.action;

import java.util.List;

import com.electronsys.pojo.ComputerCenter;
import com.electronsys.pojo.Department;
import com.electronsys.room.service.IRoomService;
import com.opensymphony.xwork2.ActionSupport;

public class ToUpdateRoomAction extends ActionSupport {
   private Integer ccId;
   
   private IRoomService roomService;
   private ComputerCenter room;
   
   private List  list01,list02;
public String execute(){
	   list01 = roomService.getDeptId();
	   list02 = roomService.getEmpId();
	   //for(Employee emp : list02){ System.out.println(emp.getEmpId());}	
	  
	   room = roomService.showRoom(ccId); 	  
	   return SUCCESS;
   }

public List getList01() {
	return list01;
}

public void setList01(List list01) {
	this.list01 = list01;
}
public List getList02() {
	return list02;
}
public void setList02(List list02) {
	this.list02 = list02;
}
public Integer getCcId() {
	return ccId;
}
public void setCcId(Integer ccId) {
	this.ccId = ccId;
}
public IRoomService getRoomService() {
	return roomService;
}
public void setRoomService(IRoomService roomService) {
	this.roomService = roomService;
}
public ComputerCenter getRoom() {
	return room;
}
public void setRoom(ComputerCenter room) {
	this.room = room;
}


}
